package userModel

import (
	"git.oschina.net/zd04/beego-shop/utils"
	"github.com/astaxie/beego/orm"
)

type Department struct {
	DepartmentId           int64  `orm:"pk;column(department_id);"`
	DepartmentName         string `orm:"column(department_name);"`
	DepartmentSort         int64  `orm:"column(department_sort);"`
	DepartmentSupervisorId int8   `orm:"column(department_supervisor_id);"`
}

func (this *Department) TableName() string {
	return utils.TableName("department")
}

func init() {
	orm.RegisterModel(new(Department))
}
